package com.liao.common.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author: ljt
 * @Description: 商品搜索请求对象
 * @DateTime: 2025/3/26 下午11:01
 **/
@Data
public class ProductSearchRequest {
    @NotBlank(message = "搜索文本不能为空")
    private String text;
    @NotNull(message = "用户ID不能为空")
    private Integer memberId;
    private Integer from = 0;
    private Integer size = 10;
    private String sortField = "default";
    private String sortMethod = "asc";

}